﻿@model SportsStore.Domain.Entities.ShippingDetails

@{
    ViewBag.Title = "SportStore: Checkout";
}

<h2>Checkout</h2>
<p>
    Please enter your details, and we'll ship your goods and right away!
</p>

@Html.ValidationSummary()
@Html.ValidationMessage( "emptyCart" )

@using ( Html.BeginForm() )
{
    <h3>Ship to</h3>
    <div>
        Name <br />        
        @Html.EditorFor( shippingDetail => shippingDetail.Name )
        @Html.ValidationMessageFor( shippingDetail => shippingDetail.Name ) <br />
    </div>
    
    <h3>Address</h3>
    <div>
        Line 1 <br />
        @Html.EditorFor( shippingDetail => shippingDetail.Line1 )
        @Html.ValidationMessageFor( shippingDetail => shippingDetail.Line1 ) 
        <br /> <br />
    </div>
    <div>
        Line 2 <br />
        @Html.EditorFor( shippingDetail => shippingDetail.Line2 )
        <br /> <br />
    </div>
    <div>
        Line 3 <br />
        @Html.EditorFor( shippingDetail => shippingDetail.Line3 )
        <br /> <br />
    </div>
    <div>
        City <br />
        @Html.EditorFor( shippingDetail => shippingDetail.City )
        @Html.ValidationMessageFor( shippingDetail => shippingDetail.City )
        <br /> <br />
    </div>
    <div>
        State <br />
        @Html.EditorFor( shippingDetail => shippingDetail.State )
        @Html.ValidationMessageFor( shippingDetail => shippingDetail.State )
        <br /> <br />
    </div>    
    <div>
        Zip <br />
        @Html.EditorFor( shippingDetail => shippingDetail.Zip )
        <br /> <br />
    </div>
    <div>
        Country <br />
        @Html.EditorFor( shippingDetail => shippingDetail.Country )
        @Html.ValidationMessageFor( shippingDetail => shippingDetail.Country )
        <br /> <br />
    </div>
    
    <h3>Options</h3>
    <label>
        @Html.EditorFor( shippingDetail => shippingDetail.GiftWrap )
        Gift Wrap these items
    </label>
    
    <p align="Center">
        <input class="actionButtons" type="submit" value="Complete order" />
    </p>
}